package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.DealerLevel;
import cn.imvc.data.jpa.repository.IJpqlExecutor;

public interface DealerLevelRepository  extends JpaRepository<DealerLevel, Integer>,IJpqlExecutor<DealerLevel>{
	List<DealerLevel> findByName(String name);

	List<DealerLevel> findByLevel(int theLevel);

	List<DealerLevel> findByOrderByLevelDesc();

	List<DealerLevel> findByOrderByLevelAsc();

	List<DealerLevel> findByLevelGreaterThanOrderByLevelAsc(int level);
}
